package com.alks.entity.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@ToString
@TableName("PC_EMPLOYEE")
public class PcEmployee {

    @ApiModelProperty("公司id")
    @TableField("COMPANY_ID")
    private String companyId;

    @ApiModelProperty("部门代码")
    @TableField("DEPT_NO")
    private String deptNo;

    @ApiModelProperty("部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty("姓名")
    @TableField("NAME")
    private String name;

    @ApiModelProperty("性别")
    @TableField("SEX")
    private String sex;

    @ApiModelProperty("身份证号码")
    @TableField("ID_NO")
    private String idNo;

    @ApiModelProperty("职务")
    @TableField("POSITION")
    private String position;

    @ApiModelProperty("工种")
    @TableField("WORK_TYPE")
    private String workType;

    @ApiModelProperty("手机号")
    @TableField("MOBILE_NO")
    private String mobileNo;

    @ApiModelProperty("地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty("入厂时间")
    @TableField("DATE_IN")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime dateIn;

    @ApiModelProperty("合同")
    @TableField("CONTRACT")
    private String contract;

    @ApiModelProperty("操作人")
    @TableField("SYS_USER")
    private String sysUser;

    @ApiModelProperty("操作时间")
    @TableField("SYS_DATE")
    private LocalDateTime sysDate;

    @TableField("CFM_FLAG")
    private String cfmFlag;

    @TableField("CFM_USER")
    private String cfmUser;

    @TableField("CFM_DATE")
    private LocalDateTime cfmDate;

    @ApiModelProperty("计算类型")
    @TableField("CALC_TYPE")
    private String calcType;

    @ApiModelProperty("工号")
    @TableField("WORKER_ID")
    private String workerId;

    @ApiModelProperty("学历")
    @TableField("EDUCATION")
    private String education;

    @ApiModelProperty("婚否")
    @TableField("MARRIED")
    private String married;

    @ApiModelProperty("是否成年")
    @TableField("CHILD_FLAG")
    private String childFlag;

    @ApiModelProperty("民族")
    @TableField("NATION")
    private String nation;

    @ApiModelProperty("联系人")
    @TableField("CONTACT_PERSON")
    private String contactPerson;

    @ApiModelProperty("联系人电话")
    @TableField("CONTACT_PHONE")
    private String contactPhone;

    @ApiModelProperty("现地址")
    @TableField("ADDRESS_NOW")
    private String addressNow;

    @ApiModelProperty("合同日期")
    @TableField("CONTRACT_DATE")
    private LocalDateTime contractDate;

    @ApiModelProperty("出生日期")
    @TableField("BRISDAY")
    private LocalDateTime brisday;

    @ApiModelProperty("开户行")
    @TableField("BANK_CARD_NAME")
    private String bankCardName;

    @ApiModelProperty("银行卡号")
    @TableField("BANK_CARD_ID")
    private String bankCardId;

    @ApiModelProperty("开户名")
    @TableField("BANK_CARD_USER")
    private String bankCardUser;

    @ApiModelProperty("状态 1入职 2离职")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty("离职日期")
    @TableField("DEL_DATE")
    private LocalDateTime delDate;

    @ApiModelProperty("离职原因")
    @TableField("DEL_REASON")
    private String delReason;

    @ApiModelProperty("备注")
    @TableField("REMARK")
    private String remark;
}
